package com.arvato.wxwork.bean.bean_vo.kpi;

import java.util.Date;

import com.arvato.common.util.DateFormatUtil;
/**
 * KPI设定展示类
 * @author ZHAN655
 *
 */
public class WxworkKpiSetVo{
	/**
	 * 主键ID
	 */
	private String id;
	/**
	 * 职位Code
	 */
    private String positionCode;
    /**
     * 职位名称
     */
    private String positionName;
    /**
     * kpi行数据Code
     */
    private String kpiCodeRow;
    /**
     * kpi行数据名称
     */
    private String kpiNameRow;
    /**
     * kpi列数据Code
     */
    private String kpiCodeColumn;
    /**
     * kpi列数据名称
     */
    private String kpiNameColumn;
    /**
     * 默认值
     */
    private String defaultValue;
    /**
     * 年份
     */
    private String year;
    /**
     * 月份
     */
    private String month;
    /**
     * 日期
     */
    private String day;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getPositionCode() {
		return positionCode;
	}
	public void setPositionCode(String positionCode) {
		this.positionCode = positionCode;
	}
	public String getPositionName() {
		if("10000".equals(positionCode)) {
			return "大区";
		}else if("20000".equals(positionCode)){
			return "门店";
		}
		return positionName;
	}
	public void setPositionName(String positionName) {
		this.positionName = positionName;
	}
	public String getKpiCodeRow() {
		return kpiCodeRow;
	}
	public void setKpiCodeRow(String kpiCodeRow) {
		this.kpiCodeRow = kpiCodeRow;
	}
	public String getKpiNameRow() {
		return kpiNameRow;
	}
	public void setKpiNameRow(String kpiNameRow) {
		this.kpiNameRow = kpiNameRow;
	}
	public String getKpiCodeColumn() {
		return kpiCodeColumn;
	}
	public void setKpiCodeColumn(String kpiCodeColumn) {
		this.kpiCodeColumn = kpiCodeColumn;
	}
	public String getKpiNameColumn() {
		return kpiNameColumn;
	}
	public void setKpiNameColumn(String kpiNameColumn) {
		this.kpiNameColumn = kpiNameColumn;
	}
	public String getDefaultValue() {
		return defaultValue;
	}
	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}
	public String getYear() {
		return year;
	}
	public void setYear(String year) {
		this.year = year;
	}
	public String getMonth() {
		return month;
	}
	public void setMonth(String month) {
		this.month = month;
	}
	public String getDay() {
		return day;
	}
	public void setDay(String day) {
		this.day = day;
	}
	public String getCreateTime() {
		return DateFormatUtil.date2Str(createTime, "yyyy-MM-dd HH:mm:ss");
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getUpdateTime() {
		return DateFormatUtil.date2Str(updateTime, "yyyy-MM-dd HH:mm:ss");
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}